Skip to content

ci: build clangd without ClangIR - #13

Merged
devnullexile merged 1 commit into
mainfrom
ci/disable-clangir
Nov 6, 2026
Merged

devnullexile merged 1 commit into
mainfrom
ci/disable-clangir

Conversation

@devnullexile

Copy link
Copy Markdown
Member

CI has failed on every platform since about Oct 21, on main and on every pull request, including #11 and #12. Nothing in this repository caused it.

Why

LLVM main now builds ClangIR by default (llvm/llvm-project#221291, merged 2026-10-21). ClangIR depends on MLIR, so CMake adds mlir to the enabled projects. Our sparse checkout of llvm-project has no mlir/ directory, so the LLVM configure step stops with:

LLVM_ENABLE_PROJECTS requests mlir but directory not found: .../llvm-project/llvm/../mlir

Fix

Pass -DCLANG_ENABLE_CIR=OFF to the clangd configure step on Linux, macOS and Windows. Clangd does not use ClangIR, so this also keeps MLIR out of the build and the cache.

How it was checked

Against llvm-project main at 84ba7b37f with the same sparse checkout: without the flag, configure fails with the error above. With the flag and the macOS CI options, configure succeeds, MLIR stays disabled, and the clangd target is generated. CI on this pull request runs the full build and tests.

LLVM main now builds ClangIR by default (llvm/llvm-project#221291), which adds MLIR as a dependency. The sparse checkout has no mlir directory, so the LLVM configure step failed on every platform. Clangd does not need ClangIR, so turn it off.
@devnullexile
devnullexile requested a review from ArcsinX as a code owner November 6, 2026 10:42
@devnullexile-deepseek-review

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
✅ Merge recommendation: No concerns found
🧪 No relevant tests
🔒 No security concerns identified
⚡ No major issues detected

@ArcsinX ArcsinX left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

@devnullexile
devnullexile merged commit 8fd665c into main Nov 6, 2026
5 checks passed
@devnullexile
devnullexile deleted the ci/disable-clangir branch November 6, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants